package com.ruoyi.project.channel.investConfig.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.channel.investConfig.mapper.InvestConfigMapper;
import com.ruoyi.project.channel.investConfig.domain.InvestConfig;
import com.ruoyi.project.channel.investConfig.service.IInvestConfigService;
import com.ruoyi.common.utils.text.Convert;

/**
 * 充值配置 服务层实现
 * 
 * @author CAIN
 * @date 2021-01-30
 */
@Service
public class InvestConfigServiceImpl implements IInvestConfigService 
{
	@Autowired
	private InvestConfigMapper investConfigMapper;

	/**
     * 查询充值配置信息
     * 
     * @param investId 充值配置ID
     * @return 充值配置信息
     */
    @Override
	public InvestConfig selectInvestConfigById(Long investId)
	{
	    return investConfigMapper.selectInvestConfigById(investId);
	}
	
	/**
     * 查询充值配置列表
     * 
     * @param investConfig 充值配置信息
     * @return 充值配置集合
     */
	@Override
	public List<InvestConfig> selectInvestConfigList(InvestConfig investConfig)
	{
	    return investConfigMapper.selectInvestConfigList(investConfig);
	}
	
    /**
     * 新增充值配置
     * 
     * @param investConfig 充值配置信息
     * @return 结果
     */
	@Override
	public int insertInvestConfig(InvestConfig investConfig)
	{
	    return investConfigMapper.insertInvestConfig(investConfig);
	}
	
	/**
     * 修改充值配置
     * 
     * @param investConfig 充值配置信息
     * @return 结果
     */
	@Override
	public int updateInvestConfig(InvestConfig investConfig)
	{
	    return investConfigMapper.updateInvestConfig(investConfig);
	}

	/**
     * 删除充值配置对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteInvestConfigByIds(String ids)
	{
		return investConfigMapper.deleteInvestConfigByIds(Convert.toStrArray(ids));
	}
	
}
